<template>
  <div class="download">
    <div class="flx-default pointer" @click="handleOpenWindow">
      <i :class="'iconfont icon-download'" class="toolBar-icon"></i>
      <div class="fsize14">下载中心</div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";

const env = ref(import.meta.env);
const handleOpenWindow = () => {
  if (env.value.VITE_RELEASE_NAME === "shangtuo") {
    window.open("http://app.pos08.com/downloadpage/download.html");
  } else if (env.value.VITE_RELEASE_NAME === "fendi") {
    window.open("https://web.fendi.net.cn/downloadpage/download.html");
    // window.open("http://upgrade.posyun3721.com/Download/coreFendi.rar");
  }
};
</script>
